package de.pasbreuer.openmovieman;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;


public class MainWindow {

	private JFrame frmOpenmovieman;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		Test.fillWithValues();
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MainWindow window = new MainWindow();
					window.frmOpenmovieman.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public MainWindow() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmOpenmovieman = new JFrame();
		frmOpenmovieman.setTitle("OpenMovieMan");
		frmOpenmovieman.setBounds(100, 100, 450, 300);
		frmOpenmovieman.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		table = new JTable(EntityManagement.toStringArray(), Entity.columnNames);
		JScrollPane scrollPane = new JScrollPane(table);
		frmOpenmovieman.getContentPane().add(scrollPane);
		
		
	}

}
